< previous page page_226 next page >

Page 226
appears, telling you that the new table has been created. When you exit the dialog by clicking Close, Visdata refreshes the Window List automatically. You should now see a new table in the listMoreAuthors.
Refresh List
The Refresh List option updates the window to reflect changes in the data access objects that are part of the database. Usually, Visdata refreshes the Database window each time you take an action that affects the contents of the list. Some actions, however, do not automatically update the window. For example, if you use the SQL window to enter SQL statements to create a new data table in the database, Visdata does not automatically refresh the Database window.
To refresh the Database window, simply click anywhere in the Database window, and then click once with the alternate mouse button to bring up the context menu. Select Refresh List from the list. Visdata refreshes the Database window to reflect the current state of the data access objects in the opened database.
New Table
This option displays the Table Structure dialog, which can be used to construct a new table or index. We work on building new tables in the section entitled "Adding Tables and Indexes to the Database" later in this chapter.
New Query
This option displays the Visdata Query Builder, which can be used to help build SQL statements. We discuss the Query Builder when describing the Utility menu later in this chapter.
The SQL Statement Window
The SQL Statement window enables you to enter and execute standard SQL statements against the opened database. You can save the SQL query for later use in your Visual Basic 5 programs.
Select the SQL Statement window by clicking the top border of the window one time. Now enter the following SQL query into the text window:
SELECT * FROM Authors
Now, make sure that the Use DBGrid Control on New Form icon, located at the top of the Visdata window, is selected, and then select the Execute button in the SQL Statement

 
< previous page page_226 next page >

If you like this book, buy it!